package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh活动推送岗位Model;
import com.iris.live.services.data.models.Lsh活动推送岗位ModelPK;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by sxy on 2016/7/13.
 */
public interface Lsh活动推送岗位Repository extends JpaRepository<Lsh活动推送岗位Model, Lsh活动推送岗位ModelPK>, JpaSpecificationExecutor<Lsh活动推送岗位Model> {

    @Modifying
    @Query("delete from Lsh活动推送岗位Model u where u.活动编号 = ?1")
    int delBy活动编号(int id);

    List<Lsh活动推送岗位Model> findBy活动编号(int id);
}
